/*
 * TestGame.java
 * 
 * author: The MomberBan Team
 *    date: 21.09.2008
 * 
 * 
 */
package at.momberban.game.me.tests;

import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

import at.momberban.game.me.BTServerNetworkManager;
import at.momberban.game.me.Game;
import at.momberban.game.me.GameMap;

/**
 * @author patchinsky
 *
 */
public class TestGame extends MIDlet {
    
    /**
     * override
     *
     * @see javax.microedition.midlet.MIDlet#destroyApp(boolean)
     */
    protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
        // TODO Auto-generated method stub
        
    }

    /**
     * override
     *
     * @see javax.microedition.midlet.MIDlet#pauseApp()
     */
    protected void pauseApp() {
        // TODO Auto-generated method stub
        
    }

    /**
     * override
     *
     * @see javax.microedition.midlet.MIDlet#startApp()
     */
    protected void startApp() throws MIDletStateChangeException {
        Game g = new Game();
        g.setNetworkManager(BTServerNetworkManager.getManager());
        g.setMap(GameMap.getMaps()[0]);
        g.setHost(true);
        g.prepare();
    }

}
